package com.yangjie.autotest.hpsa.domain;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;

@Entity
@Table(name="HGC_PROVISION_HIS")
public class HisParentOrder extends BaseOrder{

	

	@OneToMany(fetch = FetchType.EAGER, targetEntity=HisSubOrder.class)
	@JoinColumn(name = "OriPsId")
	private Set<BaseSubOrder> subOrders = null;
	
	public Set<BaseSubOrder> getSubOrders() {
		return subOrders;
	}
	public void setSubOrders(Set<BaseSubOrder> subOrders) {
		this.subOrders = subOrders;
	}
	

	public String toString() {
		return super.toString();
	}
	
}
